package com.micaelvesterlund.skeerkie.shared.domain;

public class Standing {
	private Team team;
	private int gamePlayed;
	private int won;
	private int tied;
	private int lost;
	private int totalPoints;

	public Standing(Team team) {
		this.team = team;
	}

	public void incWon() {
		won++;
		gamePlayed++;
		totalPoints += 3;
	}

	public void incTied() {
		tied++;
		gamePlayed++;
		totalPoints += 1;
	}

	public void incLost() {
		lost++;
		gamePlayed++;
		totalPoints += 0;
	}

	public Team getTeam() {
		return team;
	}

	public int getGamePlayed() {
		return gamePlayed;
	}

	public int getWon() {
		return won;
	}

	public int getTied() {
		return tied;
	}

	public int getLost() {
		return lost;
	}

	public int getTotalPoints() {
		return totalPoints;
	}

	@Override
	public String toString() {
		return "Standing [team=" + team + ", gamePlayed=" + gamePlayed
				+ ", won=" + won + ", tied=" + tied + ", lost=" + lost
				+ ", totalPoints=" + totalPoints + "]";
	}

}
